/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.office.entities;

import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
import jakarta.persistence.*;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author hgs
 */
@Entity
@Table(name = "LOGS")
public class Logs extends EntityCommon<Logs> implements Identifiable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "ID")
    private Integer ID;
    @Column(name = "OPERATION", length = 8)
    private String OPERATION;
    @Column(name = "RECORDERINFO", length = 200)
    private String RECORDERINFO;
    @Column(name = "OPERATIONTIME")
    @Temporal(TemporalType.TIMESTAMP)
    private LocalDateTime OPERATIONTIME;
    @Column(name = "TABLENAME", length = 20)
    private String TABLENAME;
    @Column(name = "STUDENTID")
    private Integer STUDENTID;
    @Column(name = "TEACHERID")
    private Integer TEACHERID;

    public Logs() {
    }


    public Integer getID() {
        return ID;
    }

    public void setID(Integer id) {
        this.ID = id;
    }

    public String getOPERATION() {
        return OPERATION;
    }

    public void setOPERATION(String operation) {
        this.OPERATION = operation;
    }

    public String getRECORDERINFO() {
        return RECORDERINFO;
    }

    public void setRECORDERINFO(String recorderinfo) {
        this.RECORDERINFO = recorderinfo;
    }

    public LocalDate getOPERATIONTIME() {
        return OPERATIONTIME.toLocalDate();
    }

    public void setOPERATIONTIME(LocalDateTime operationtime) {
        this.OPERATIONTIME = operationtime;
    }

    public String getTABLENAME() {
        return TABLENAME;
    }

    public void setTABLENAME(String tablename) {
        this.TABLENAME = tablename;
    }

    public Integer getSTUDENTID() {
        return STUDENTID;
    }

    public void setSTUDENTID(Integer studentid) {
        this.STUDENTID = studentid;
    }

    public Integer getTEACHERID() {
        return TEACHERID;
    }

    public void setTEACHERID(Integer teacherid) {
        this.TEACHERID = teacherid;
    }
}
